<?php
// 本类由系统自动生成，仅供测试用途
class WitnessAction extends Action {
	public function index(){
		$Article = M("Article");
		$condition['article_type_name'] = witness;
		$Witness=$Article->where($condition)->order('article_id desc')->select();
		$this->assign('Witness',$Witness);
		
		$this->display();
	}
	
	public function detial(){
		$a_id = $_GET["_URL_"][2];
		$Article = M("Article");
		$condition['article_id'] = $a_id;
		$WitnessD=$Article->where($condition)->find();
		$this->assign('WitnessD',$WitnessD);
		$this->display();
	}
}
?>